﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppFramework.DinosaursParkMes.Production.DTO
{
    //领料主表（聚合跟）
    public class MaterialRequisitionDTO
    {
        /// <summary>
        /// 领料单名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Materialrequisitionname { get; set; }

        /// <summary>
        /// 领料日期
        /// </summary>
        [Required]
        public DateTime Materialrequisitiondate { get; set; }

        /// <summary>
        /// 领料人
        /// </summary>
        [Required]
        public string Person { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        [Required]
        public string Workordername { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        [Required]
        public string Workordercode { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [Required]
        public string Taskname { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
         [Required]
        public string Taskcode { get; set; }

        /// <summary>
        /// 工艺路线
        /// </summary>
        public string Processroute { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string Processname { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        public List<MaterialBOMDTO> Item { get; set; }
    }
    //领料关联Bom次表
    public class MaterialBOMDTO
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Serialnumber { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Materialname { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string Materialcode { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationsandmodels { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public int Stock { get; set; }

        /// <summary>
        /// 领用数量
        /// </summary>
        public int Number { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string Batchnumber { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string Warehousename { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        public string Storagelocationname { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string Reservoirareaname { get; set; }
    }
}
